import request from "@/utils/request";

// 查询列表
export function getList2(data) {
  return request({
    url: "/business/team/safe/specialWorkPerson/list",
    method: "post",
    data: data,
  });
}
// 查询列表
export function getList4(data) {
  return request({
    url: "/business/team/base/construction/contract/pageDetail",
    method: "post",
    data: data,
  });
}

//  班组基本信息 查询列表
export function getTeamList0(data) {
  return request({
    url: "/business/team/group/simpleDetail?groupId=" + data,
    method: "get",
  });
}

//  班组制度 查询列表
export function getTeamList1(data) {
  return request({
    url: "/business/team/rules/page",
    method: "post",
    data: data,
  });
}

//  班组制度 查询列表
export function getTeamList2(data) {
  return request({
    url: "/business/team/honor/page",
    method: "post",
    data: data,
  });
}

export function getTeamList3(data) {
  return request({
    url: "/business/team/train/activity/manage/page",
    method: "post",
    data: data,
  });
}

export function getTeamList4(data) {
  return request({
    url: "/business/team/train/activity/meeting/page",
    method: "post",
    data: data,
  });
}


export function getTeamList5(data) {
  return request({
    url: "/business/team/group/listMember",
    method: "get",
    params: data,
  });
}
export function exportFile(data) {
  return request({
    url: "/business/team/group/exportMember",
    method: "get",
    params: data,
    responseType: "blob",
  });
}


export function getProjectList0(data) {
  return request({
    url: "/business/contractor/project/manage/detail/" + data,
    method: "post",
  });
}

export function getProjectList1(contractorId) {
  return request({
    url: "/business/contractor/data/manage/detail/" + contractorId,
    method: "post",
  });
}

export function getProjectList4(projectId) {
  return request({
    url: "/business/contractor/projectEnd/queryByProjectId?id=" + projectId,
    method: "get",
  });
}

export function getContractorList0(contractorId) {
  return request({
    url: "/business/contractor/data/manage/detail/" + contractorId,
    method: "post",
  });
}

export function getContractorList1(data) {
  return request({
    url: "/business/contractor/project/manage/page",
    method: "post",
    data: data,
  });
}

export function getContractorList2(data) {
  return request({
    url: "/business/contractor/project/manage/pageCheckedStatics",
    method: "post",
    data: { ...data, accessContractorId: data.contractorId },
  });
}

export function getContractorList3(data) {
  return request({
    url: "/business/contractor/projectEnd/page",
    method: "post",
    data: data,
  });
}

export function getContractorList4(data) {
  return request({
    url: "/business/contractor/projectPeople/blackList/page",
    method: "post",
    data: data,
  });
}

export function getContractorUserInfo(data) {
  return request({
    url: "/business/contractor/projectPeople/manage/detail/" + data,
    method: "post",
  });
}

export function getContractorUserList0(data) {
  return request({
    url: "/business/contractor/projectPeople/manage/page",
    method: "post",
    data: data,
  });
}

// 查询列表
export function getContractorUserList1(data) {
  return request({
    url: "/business/contractor/projectPeople/manage/special/page",
    method: "post",
    data: { ...data, personId: data.id },
  });
}

// 查询列表
export function getContractorUserList2(data) {
  return request({
    url: "/business/contractor/projectPeople/manage/contract/page",
    method: "post",
    data: { ...data, personId: data.id },
  });
}

// 查询列表
export function getContractorUserList3(data) {
  return request({
    url: "/business/contractor/projectPeople/manage/protect/page",
    method: "post",
    data: { ...data, personId: data.id },
  });
}

// 查询列表
export function getContractorUserList4(data) {
  return request({
    url: "/business/contractor/projectPeople/manage/healthCheck/page",
    method: "post",
    data: { ...data, personId: data.id },
  });
}

// 查询列表
export function getContractorUserList5(data) {
  return request({
    url: "/business/contractor/projectPeopleChangePost/page",
    method: "post",
    data: { ...data, personId: data.id },
  });
}
